package com.java_foundation.huawei.Test_7;

import java.util.Scanner;

/**
 * @program: java_foundation
 * @description: 写出一个程序，接受一个十六进制的数，输出该数值的十进制表示。（多组同时输入 ）
 * @author: xiongbangwen <Email>xiongbangwen@163.com</Email>
 * @create: 2020-08-02 22:25
 **/
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            System.out.println(Integer.parseInt(sc.next().replaceAll("x",""),16));
        }
    }
}
